<script src="<?php echo base_url()?>/public/assets/js/laydate/laydate.js" type="text/javascript"></script>
<div class="row">
	<div class="col-sm-12">
	    <div>
    		<a href="/admin/coursecate?per_page=<?php if(!empty($_REQUEST['per_page']))echo $_REQUEST['per_page']?>" class="btn btn-info_01 float_right btn_search">返回</a>
    	</div>
		<div class="space"></div>
        <form action="/admin/coursecate/add" method="post" onsubmit=" return yanzheng()">
		<input type="hidden" value="update" name="form_submit" />
		<input type="hidden" value="0" name="id" />
		<table width="100%" class="table table-striped table-bordered table-hover" widtd="100%">
					<tr>
			  <td height="30" widtd="15%">园所：</td>
			  <td height="30" align="left" widtd="85%">
			  <select name="nursery_id">
			  	<?php foreach ($nursery_list as $key=>$val){?>
			  	<option value="<?php echo $val['id']?>"><?php echo $val['title']?></option>
			  	<?php }?>
			  </select>
			  </td>
		  </tr>
			<tr>
			    <td width="15%" height="30" widtd="15%">名称：</td>
				<td width="85%" height="30" align="left" widtd="85%"><input type="text" value="" name="title"/></td>
			</tr>
			<tr>
			  <td height="30">图标：</td>
			  <td height="30" align="left">
			  <img src="" width='100px' />
			  </td>
		  </tr>
			<tr>
			  <td height="30">简介：</td>
			  <td height="30" align="left">
			  <textarea name="intro" style="width:400px"></textarea>			  </td>
		  </tr>
			<tr>
			  <td height="30" colspan="2"><div align="center"><input type="submit" value="提交" /></div></td>
		  </tr>
	  </table>
	  </form>
	</div>
</div>
<script>
function yanzheng(){ 
	if(!$("[name='title']").val()){ 
	    alert('请输入名称！'); 
	    return false; 
	}
	if(!$("[name='intro']").val()){ 
	    alert('请输入简介！'); 
	    return false; 
	}
	if(!confirm('确定要添加吗？')){
		return false;
	}
}
</script>
<!--content-->